package com.fanpan26.reentrantlock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author fanpan26
 */
public class ReentrantLockAndAQSSourceCode {

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();

        try {
            lock.lock();
            System.out.println("枷锁之后执行了");
        } finally {
            lock.unlock();
        }
    }

}
